package com.yuexiang.melodyhub.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("mb_user")
@NoArgsConstructor
@AllArgsConstructor
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer userId;

    private String username;

    private String email;

    private String passwordHash;

    private String avatar;

    private String status;

    private Date createdAt;

    private Date lastLogin;

}
